package ru.psu.holycow.library.user;

import java.util.Random;

import ru.psu.holycow.library.agent.AgentKeeper;
import ru.psu.holycow.library.agent.IAgent;

public class Starter
{
	public static void main(String[] args)
	{
		Random r = new Random(System.currentTimeMillis());
		AgentKeeper x = new AgentKeeper(10);
		// agent of TrafficLight
		IAgent tlight = new TrafficLight(0, x);
		// agents of Man
		for (int i = 0; i < 25; i++)
		{
			IAgent man = new Man(r.nextInt(90) + 10, x);
			man.setDependency(tlight);
			x.addAgent(man);
		}
		x.addAgent(tlight);
		System.out.println("Come on!");
		x.start();
	}
}
